
sum=0
a=0
while a<5:
    sum+=a
    a+=1
    print('和为',sum)

#练习1到100之间的偶数和
sum=0
a=1
while a<=100:
    if a%2==0:
        sum+=a

    a+=1
print('1-100之间的偶数和',sum)

